<template>
  <div id="app">
	  <!-- 要缓存的路由 -->
    <keep-alive>
    	<router-view v-if="$route.meta.keepAlive"></router-view>
    </keep-alive>
	<!-- 不要缓存的路由 -->
	<router-view v-if="!$route.meta.keepAlive"></router-view>
	
  </div>
</template>
<script>
	export default{
		//在APP.VUE中写入INIT_USER，使得以进入到页面就获取本地存储信息
		created() {
			this.$store.commit('INIT_USER');
		}
	}
</script>